/*
' DotNetNuke?- http://www.dotnetnuke.com
' Copyright (c) 2002-2006
' by Perpetual Motioneractive Systems Inc. ( http://www.perpetualmotion.ca )
'
' Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 
' documentation files (the "Software"), to deal in the Software without restriction, including without limitation 
' the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and 
' to permit persons to whom the Software is furnished to do so, subject to the following conditions:
'
' The above copyright notice and this permission notice shall be included in all copies or substantial portions 
' of the Software.
'
' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED 
' TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 
' THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 
' CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
' DEALINGS IN THE SOFTWARE.
 */

using System;
using DotNetNuke;
using System.Data;

using DotNetNuke.Framework;

namespace M2Land.Modules.FlashImageRotator
{
    /// -----------------------------------------------------------------------------
    /// <summary>
    /// An abstract class that provides the DAL contract
    /// </summary>
    /// <remarks>
    /// </remarks>
    /// <history>
    /// </history>
    /// -----------------------------------------------------------------------------
    public abstract class DataProvider
    {

        #region Shared/Static Methods

        // singleton reference to the instantiated object 
        static DataProvider objProvider = null;

        // constructor
        static DataProvider()
        {
            CreateProvider();
        }

        // dynamically create provider
        private static void CreateProvider()
        {
            objProvider = (DataProvider)Reflection.CreateObject("data", "M2Land.Modules.FlashImageRotator", "");
        }

        // return the provider
        public static DataProvider Instance()
        {
            return objProvider;
        }

        #endregion

        #region Abstract methods

        public abstract void AddFlashImageRotator(int ModuleId,string Source, int Height,int Width,string File,string Image,string ID,bool SearchBar,string BackColor ,string FrontColor ,
string LightColor ,
string ScreenColor ,
string Logo,
string OverStrech,
bool ShowEq,
bool ShowIcons,
string Transtion,
bool ShowNavigation,
bool ShowStop,
bool ShowDigits,
bool ShowDownload,
bool UseFullScreen,
bool AutoScroll,
int DisplayHeight,
int DisplayWidth,
bool ThumbsInPlaylist,
string Audio,
bool AutoStart,
int BufferLength,
string Captions,
string FallBack,
string Repeat,
int RotateTime,
bool Shuffle,
bool Smoothing,
int Volume,
string CallBack,
bool EnableJS,
string JavascriptID,
string Link,
bool LinkFromDisplay,
string LinkTarget,
string Recommendation,
string SearchLink,
string StreamScript,
string Type);
        public abstract IDataReader GetFlashImageRotator(int ModuleId);
        public abstract void UpdateFlashImageRotator(int ModuleId,string Source, int Height,int Width,string File,string Image,string ID,bool SearchBar,string BackColor ,string FrontColor ,
string LightColor ,
string ScreenColor ,
string Logo,
string OverStrech,
bool ShowEq,
bool ShowIcons,
string Transtion,
bool ShowNavigation,
bool ShowStop,
bool ShowDigits,
bool ShowDownload,
bool UseFullScreen,
bool AutoScroll,
int DisplayHeight,
int DisplayWidth,
bool ThumbsInPlaylist,
string Audio,
bool AutoStart,
int BufferLength,
string Captions,
string FallBack,
string Repeat,
int RotateTime,
bool Shuffle,
bool Smoothing,
int Volume,
string CallBack,
bool EnableJS,
string JavascriptID,
string Link,
bool LinkFromDisplay,
string LinkTarget,
string Recommendation,
string SearchLink,
string StreamScript,
string Type);
        public abstract void DeleteFlashImageRotator(int ModuleId);

        #endregion

    }
}
